#!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
import time
from socket import *

client = socket(AF_INET, SOCK_STREAM)
client.connect(("127.0.0.1", 28312))

while True:
    # msg = input(">>>>: ").strip().encode("utf-8")
    msg= "hello world".encode("utf-8")
    time.sleep(1)
    if len(msg) == 0: continue
    client.send(msg)
    print(client.recv(1024))
